﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PMIS.Shared.DTO
{
    public class DepartmentDto: ModelBase
    {
        public string? Id { get; set; }

        public string? ParentId { get; set; }

        public string Name { get; set; }

        public int? PrincipalId { get; set; }

        public string? PrincipalName { get; set; }

        public int? Sort { get; set; }

        public string? Remark { get; set; }

        private List<DepartmentDto>? _children;
        public List<DepartmentDto>? Children
        {
            get
            {
                return _children;
            }
            set
            {
                SetProperty(ref _children, value);
            }
        }
    }
}
